package com.atm.bulksms;

import com.atm.bulksms.util.Utils;

import android.app.Dialog;
import android.app.ListActivity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.AdapterView;
import android.widget.Button;
import android.widget.AdapterView.OnItemClickListener;

public class ScheduleListActivity extends ListActivity implements OnItemClickListener{
	
	private static final int DIALOG_SCHEDULE_MESSAGE = 0;
	@Override
	protected void onCreate(Bundle savedInstanceState) {
		// TODO Auto-generated method stub
		super.onCreate(savedInstanceState);
		setContentView(R.layout.schedule_list);
		Button btn = (Button) findViewById(R.id.schedule_new_btn);
		btn.setOnClickListener(new OnClickListener() {
			
			@Override
			public void onClick(View v) {
//				showDialog(DIALOG_SCHEDULE_MESSAGE);
				Intent intent = new Intent(getApplicationContext(), ScheduleActivity.class);
				startActivity(intent);
				
			}
		});
		
		
	}
	
	@Override
	protected void onStart() {
		// TODO Auto-generated method stub
		super.onStart();
		Utils.removeAllContacts();
		//Utils.removeAllSelectedGroups();
	}

	@Override
	public void onItemClick(AdapterView<?> arg0, View arg1, int arg2, long arg3) {
		// TODO Auto-generated method stub
		
	}
	
	@Override
	protected Dialog onCreateDialog(int id) {
		Dialog dialog;
		switch (id) {
		case DIALOG_SCHEDULE_MESSAGE:
			//dialog = new 
			break;

		default:
			break;
		}
		return super.onCreateDialog(id);
	}
	
	
	
}
